<?php 
	$this->pageTitle = Yii::app()->name . ' - Lucky Train';
?>

<script type="text/javascript">
	//var _timeStamp=1329929385;
	var siteurl="<?php echo Yii::app()->request->baseUrl;?>/game/";
</script>

<div class="wrapper" style="padding: 10px;">
	<div id="row1" class="col4 marg_right1">
			<h2>Chuyáº¿n táº§u may máº¯n (x9)</h2>
			<?php if(isset($rule)){echo $rule['value'];}?>
			<b>Káº¿t quáº£ cÃ¡c vÃ²ng trÆ°á»›c: <br/><br/>
			<table width="98%" border="1" cellpadding="4" cellspacing="4">
				<tbody>
					<tr style="color: blue">
						<td style="border: thin solid white;text-align: center;" bgcolor="#DADADA">
							<strong>Káº¿t quáº£</strong>
						</td>
						<td style="border: thin solid white;text-align: center;" bgcolor="#DADADA">
							<strong>MD5</strong>
						</td>
						<td style="border: thin solid white;text-align: center;" bgcolor="#DADADA">
							<strong>NgÆ°á»�i tháº¯ng</strong>
						</td>
					</tr>
					<?php foreach ($lucky_train_hist as $lt): ?>
						<tr align="center" bgcolor="#ebf6e6">
							<td style="border: thin solid white" bgcolor="#F8F8F8"><?php echo $lt['result_num'];?>-<?php echo $lt['random_string'];?></td>
							<td style="border: thin solid white" bgcolor="#F8F8F8">
								<font color="#ff0000"><?php echo hash('md5', $lt['result_num'] . '-' .$lt['random_string']) ?></font>
							</td>
							<td style="border: thin solid white" bgcolor="#F8F8F8"><?php echo $lt['user_name'];?></td>
						</tr>
					<?php endforeach;?>
				</tbody>
			</table>
		</b>
		<h7>Káº¿t quáº£ vÃ²ng tiáº¿p: MD5 = <font color="#009900"><?php echo hash('md5', $lucky_train_next['result_num'] . '-' . $lucky_train_next['random_string']);?></font> Sá»‘ ngÆ°á»�i Ä‘Ã£ cÃ³ vÃ©: <?php echo $number_join;?></h7>
		<br>
		<center>
			<font size="5">
				<!--er-->
			</font>
		</center>

		<center>
			<form method="post" action="<?php echo Yii::app()->request->baseUrl;?>/game/luckytrain">
				<h2 style="color:red;font-weight: bold;"><?php if(isset($error)){echo $error;}?></h2>
				 HÃ£y mua vÃ© ngay Ä‘á»ƒ tham gia <br/><br/>
				<input type="hidden" name="buyit" value="1">
				<input type="submit" class='button active' value="Mua vé">
			</form>
		</center>

		<!--ltplay_ticket_begin-->
		<!--ltplay_ticket_end-->
		<!--ltplay_num_begin-->
		<!--ltplay_num_end-->
		<br clear="all">
	</div>
</div>
